package grg.learn.compose.network

import retrofit2.Retrofit

fun interface RetrofitProvider {
    fun retrofit(baseUrl: String): Retrofit
}

interface RetrofitCreate {

    //or 添加些参数来增加配置
    fun retrofitProvider(): RetrofitProvider

    companion object : RetrofitCreate {

        override fun retrofitProvider(): RetrofitProvider {
            return AppRetrofit
        }

    }

}

